import java.util.Scanner;

public class zheng {
    public static void main(String[] args){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入正方形的边长：");
        int x = reader.nextInt();
        for (int i=0;i<x;i++){
            for (int j=0;j<x;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
